package org.giovanolli.mumi.view.validator;

import org.giovanolli.mumi.controller.payment.PaymentConceptModel;
import org.giovanolli.mumi.entities.PaymentConcept;
import org.giovanolli.mumi.entities.filter.EntityFilter;
import org.giovanolli.mumi.entities.filter.PaymentConceptFilter;
import org.giovanolli.mumi.service.PaymentConceptService;
import org.giovanolli.mumi.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * The Class PaymentConceptModelValidator.
 */
@Component
public class PaymentConceptValidator extends AbstractViewStateModelValidator<PaymentConcept, PaymentConceptModel> {

	/** The paymentConcept service. */
	@Autowired
	private PaymentConceptService paymentConceptService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getFilter()
	 */
	@Override
	public EntityFilter<PaymentConcept> getFilter() {
		return new PaymentConceptFilter();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.view.validator.AbstractViewStateModelValidator#getService()
	 */
	@Override
	public Service<PaymentConcept> getService() {
		return paymentConceptService;
	}

}